package com.graduate.common.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.graduate.common.entity.House;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author bwzfy
 * @create 2021/5/23
 **/
public class AccountVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer uid;

    /**
     * 身份证号
     */
    private String idCard;

    /**
     * 客户的真实姓名
     */
    private String realName;

    /**
     * 房间id
     */
    private House house;

    /**
     * 入住时间
     */
    private Date startTime;

    /**
     * 退房时间
     */
    private Date endTime;

    /**
     * 消费
     */
    private Double cost;

    private String costContext;

    @TableField(exist = false)
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");

    public String getCostContext() {
        return costContext;
    }

    public void setCostContext(String costContext) {
        this.costContext = costContext;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }
    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }

    public String getStartTime() {
        return sdf.format(this.startTime);
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public String getEndTime() {
        return sdf.format(this.endTime);
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", uid=" + uid +
                ", idCard=" + idCard +
                ", realName=" + realName +
                ", hid=" + house +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", cost=" + cost +
                "}";
    }
}
